<?php
  #--------------------------------------------------
  # ALL INCLUDES + STANDARD-VALUES
  #--------------------------------------------------
  include_once("include/author.php5");
  include_once("include/config.inc");
  include_once("include/template.inc");
  include_once("include/class.db.php5");
  include_once("include/class.tools.php5");
  $svo = new db("svoptik");
  $tools = new tool();

  include_once("include/global_fix_intern.inc");
  
  #--------------------------------------------------
  # CREATE TEMPLATE
  #--------------------------------------------------
  $t = new Template("templates", "keep");
  $t->set_file(array("page" => "svoptik.tpl",
                     "ticker" => "ticker.tpl",
                     "navi" => "navi.tpl"));
  #--------------------------------------------------


  #--------------------------------------------------
  # CREATE NAVIGATION RIGHT
  #--------------------------------------------------
  $links = "";
  $url[0] = array("URL" => "", "URL-TEXT" => "", "ONCLICK" => "", "TARGET" => "_self");
  for ($i=0; $i<count($url); $i++) {
     $links .= "
        <tr height=\"15\">
			<td valign=\"top\"><img src=\"standard/spacer.gif\" width=\"20\" height=\"15\" border=\"0\" alt=\"\"></td>
			<td valign=\"top\"><a href=\"".$url[$i]['URL']."\" class=\"sitenav\" target=\"".$url[$i]['TARGET']."\" onClick=\"".$url[$i]['ONCLICK']."\">".$url[$i]['URL-TEXT']."</a></td>
			<td valign=\"top\"><img src=\"standard/spacer.gif\" width=\"20\" height=\"15\" border=\"0\" alt=\"\"></td>
		</tr>
		<tr height=\"15\">
            <td colspan=\"3\"><img src=\"standard/spacer.gif\" width=\"20\" height=\"15\" border=\"0\" alt=\"\"></td>
		</tr>
       ";
  }
  $t->set_var(array("LINKS" => $links, "BANNER" => $banner));
  $right_nav = $t->parse("","navi", true);
  #--------------------------------------------------

#--------------------------------------------------
# CREATE ALL-TIME SAME THINGS
#--------------------------------------------------
include_once ("include/sameThings.php5");

  #--------------------------------------------------



  #--------------------------------------------------
  # CREATE CONTENT "NEWS"
  #--------------------------------------------------
  @session_destroy();
  session_unregister("usr_id");
  session_unregister("usr_priv");
  $content = "
  <div align=\"center\">
  <table width=\"80%\" cellpadding=\"10\" cellspacing=\"0\" border=\"0\">
      <tr>
          <td align=\"center\" class=\"text\"><br><br><br>
              <b>Bye Bye!</b>
              </td>
          </td>
      </tr>
   </table>
   </div>
   ";

  #--------------------------------------------------

  #--------------------------------------------------
  # PARSE & OUTPUT
  #--------------------------------------------------
  $t->set_var(array("sitenav" => "MEMBERAREA -> LOGOUT",
                    "ticker" => $ticker,
                    "content" => $content."<br>",
                    "navi" => $right_nav,
	"SYNCHRONIZE" => " "));

  $t->parse("ALL", "page", true);
  $t->p("ALL");
?>
